package com.weng.coder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.weng.framework.dao.mybatis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;



/**
 * 项目用户实体Bean
 *
 * @author wengzhonghui
 * @创建时间 2018-07-17 17:22:12
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("coder_project_user")
public class ProjectUser extends BaseEntity<ProjectUser> {


    //id
    @TableField(value="id")
    private String id;
    
    //项目id
    @TableField(value="project_id")
    private String projectId;
    
    //用户id
    @TableField(value="user_id")
    private String userId;
    
    //是否项目拥有者
    @TableField(value="is_owner")
    private Integer isOwner;

		public ProjectUser() {
		}

		public ProjectUser(String projectId, String userId, Integer isOwner) {
			this.projectId = projectId;
			this.userId = userId;
			this.isOwner = isOwner;
		}
}
